package org.csu.wuliu.persistence;

import org.csu.wuliu.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface OrderMapper {
    Order getOrderByOrderId(String OrderId);
    //查询某种状态的所有订单
    List<Order> getOrderListByStatus(int status);
    //查询某一时间下单的所有订单
    List<Order> getOrderListByDate(String orderDate);
    //查询某用户的所有订单
    List<Order> getOrderListByUsername(String username);
    void insertOrder(Order order);
    void updateOrder(Order order);
    List<Order> getOrders();
}
